import { IsNotEmpty, IsOptional } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class TestCreateDto {

    /**
     * 用户名
     */
    @ApiProperty()
    @IsNotEmpty({
        message: '用户名不能为空',
    })
    username: string;

}
